package com.example.demotool.service.impl;

import com.example.demotool.bean.SysRole;
import com.example.demotool.mapper.SysRoleMapper;
import com.example.demotool.service.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysRoleServiceImpl implements SysRoleService {
    @Autowired
    private SysRoleMapper roleMapper;

    @Override
    public SysRole selectById(Integer id) {
        return roleMapper.selectById(id);
    }

    @Override
    public SysRole selectByName(String name) {
        return roleMapper.selectByName(name);
    }
}
